package com.an.framework.security.user.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.an.framework.security.user.dao.UserDao;
import com.an.framework.security.user.service.UserService;
import com.an.framework.security.user.vo.User;

/**
 * ClassName: UserServiceImpl <br/>
 * Function: 用户表数据操作实现. <br/>
 * Reason: 用户表数据接口实现. <br/>
 * date: 2017年11月8日 下午6:16:44 <br/>
 *
 * @author atc
 * @version 1.0.0
 * @since JDK 1.8
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {

	/**
	 * userDao:用户数据表接口.
	 * 
	 * @since JDK 1.8
	 */
	@Autowired
	private UserDao userDao;

	/**
	 * 通过用户名获取用户.
	 * 
	 * @see com.an.framework.security.user.service.UserService#
	 *      getUserByUsername(java.lang.String)
	 */
	public User getUserByUsername(String username) {

		return userDao.getUserByUsername(username);
	}

}
